package problemSpace;

import javax.xml.bind.annotation.XmlElement;

public class StationDuration {
	@XmlElement(name = "StationCode")
	public String stationCode;
	@XmlElement(name = "DrivingMinutes")
	public int drivingMinutes;
	@XmlElement(name = "Direction")
	public String direction;

	public StationDuration() {
		this.stationCode = "";
		this.drivingMinutes = 9999;
		this.direction = "";
	}

	public StationDuration(String stationCode, int drivingMinutes,
			String direction) {
		this.stationCode = stationCode;
		this.drivingMinutes = drivingMinutes;
		this.direction = direction;
	}
	
	public String toString(){
		return ("St Duration "+drivingMinutes+" min for station "+stationCode+" - "+direction);
	}
}
